package main

import (
	"flag"
	"log"

	"github.com/opencloudos/onyx/internal/benchmark"
)

func main() {
	var (
		image = flag.String("image", "nginx:latest", "Docker image to test")
		mode  = flag.String("mode", "compare", "Mode: normal | onyx | compare")
	)
	flag.Parse()

	r := benchmark.NewRunner(*image)
	switch *mode {
	case "normal":
		r.RunNormal()
	case "onyx":
		r.RunOnyx()
	case "compare":
		r.RunCompare()
	default:
		log.Fatalf("unknown mode: %s", *mode)
	}
}
